package com.todo.member.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2025/2/12 20:06
 * @description
 */
@Data
public class UpdateMemberMedalStatusReq {

private CurrentStaff _staff;

    @Schema(title = "主键id", description = "主键id")
    private Long id;

    @Schema(title = "旧状态", description = "旧状态")
    private Integer oldStatus;

    @Schema(title = "新状态", description = "新状态")
    private Integer newStatus;

    public boolean baseCheck() {
        if (id == null || id < 0 || oldStatus == null || newStatus == null){
            return false;
        }
        return true;
    }
}
